package com.dxy.yzs.marathon.service;

import com.dxy.yzs.marathon.domain.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dxy.yzs.marathon.param.PostProblemParam;

import java.util.List;
import java.util.Map;


/**
 *
 */
public interface PostService extends IService<Post> {

    List<Post> search(String text);

    Integer createPostProblem(PostProblemParam postProblemParam);

    List<Post> getCreateProblemsByUserId(Integer userId);

    Map<String, Object> detail(Integer postId);
}
